﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ExtremeSwank.Authentication.OpenID
{
    /// <summary>
    /// Primitive used with Extension plugins. Links aliases to namespace URIs.
    /// </summary>
    public struct SchemaDef
    {
        private string x, y;

        /// <summary>
        /// Create a new SchemaDef.
        /// </summary>
        /// <param name="alias">Alias to link.</param>
        /// <param name="uri">Namespace URI.</param>
        public SchemaDef(string alias, string uri)
        {
            x = alias;
            y = uri;
        }

        /// <summary>
        /// Gets the defined alias.
        /// </summary>
        public string Alias { get { return x; } }
        /// <summary>
        /// Gets the defined namespace URI.
        /// </summary>
        public string Uri { get { return y; } }
    }
}
